import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import permission from './modules/permission'
import dictionary from './modules/dictionary'
import customers from './modules/customers'
import batch from './modules/batch'
import contact from './modules/contact'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    dictionary,
    customers,
    batch,
    contact,
  },
  getters,
})

export default store
